<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="layout/template.xhtml">

	<ui:define name="title">Modification</ui:define>
	<ui:define name="contenu">
		<ui:fragment rendered="#{login.isAdmin()}">
			<h1>Modification</h1>
			<h:form>
				<h:outputLabel for="libelle" value="Libellé : " />
				<h:inputText id="libelle" required="true" label="libelle"
					value="#{formationBean.editFormation.libelle}" />
				<br />
				<h:outputLabel for="libelleCourt" value="Libellé Court : " />
				<h:inputText id="libelleCourt" required="true" label="libelleCourt"
					value="#{formationBean.editFormation.libelleCourt}" />
				<br />

				<h:commandButton value="Modifier"
					action="#{formationBean.modifier()}" />

			</h:form>
		</ui:fragment>
	</ui:define>

</ui:composition>
</html>